package com.zkthink.ceres.store.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

/**
 * <p>
 * 实体类 店铺表
 * </p>
 *
 * @author kellen
 * @since 2020-05-14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "StorePageDTO", description = "店铺表")
public class StorePageDTO implements Serializable {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty(value = "店铺id")
  private Long id;

  /**
   * 店铺名称
   */
  @ApiModelProperty(value = "店铺名称")
  @Length(max = 200, message = "店铺名称长度不能超过200")
  private String storeName;
  /**
   * logo
   */
  @ApiModelProperty(value = "logo")
  @Length(max = 500, message = "logo长度不能超过500")
  private String logo;
  /**
   * 发货地址
   */
  @ApiModelProperty(value = "发货地址")
  @Length(max = 500, message = "发货地址长度不能超过500")
  private String shipAddress;
  /**
   * 店铺简介
   */
  @ApiModelProperty(value = "店铺简介")
  @Length(max = 500, message = "店铺简介长度不能超过500")
  private String remark;
  /**
   * 注册手机号
   */
  @ApiModelProperty(value = "注册手机号")
  @NotEmpty(message = "注册手机号不能为空")
  @Length(max = 32, message = "注册手机号长度不能超过32")
  private String mobile;
  /**
   * 退货地址
   */
  @ApiModelProperty(value = "退货地址")
  @Length(max = 500, message = "退货地址长度不能超过500")
  private String refundAddress;
  /**
   * 退货联系电话
   */
  @ApiModelProperty(value = "退货联系电话")
  @Length(max = 32, message = "退货联系电话长度不能超过32")
  private String refundTel;
  /**
   * 退货联系人
   */
  @ApiModelProperty(value = "退货联系人")
  @Length(max = 32, message = "退货联系人长度不能超过32")
  private String refundContact;
  /**
   * 是否自动发送退货地址给买家 0否 1是
   */
  @ApiModelProperty(value = "是否自动发送退货地址给买家 0否 1是")
  @NotNull(message = "是否自动发送退货地址给买家 0否 1是不能为空")
  private Integer isAutoSendRefundAddress;

  /**
   * 店铺类型:0-商城自营店 1-商城品牌店 2-个人店
   */
  @ApiModelProperty(value = "店铺类型:0-商城自营店 1-商城品牌店 2-个人店")
  private Integer storeType;


}
